package test11;

public class Ten {
    public static void main(String[] args){
        int a,b,c;
        for(int n=153;n<1000;n++){
            a=n/100;
             b=n/10%10;
             c=n%10;
             if((a*a*a+b*b*b+c*c*c)==n) {
                 System.out.println(n);

             }
        }

            }
}
